home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 026a / tl_form.zip / README.TXT next >
Text File  |  1990-08-19  |  2KB  |  56 lines

  1.  
  2.  
  3.              How To Add A REQUIRED Clause to a VALID
  4.                       Using TL_FORM.GEN
  5.                           Tony Lima
  6.                        August 19, 1990
  7.  
  8. DISCLAIMER
  9.  
  10. This template is provided as-is.  The author, Tony Lima, will
  11. not be responsible for any damage it may cause.
  12.  
  13. PURPOSE
  14.  
  15. To allow users to add the keyword REQUIRED to a VALID clause
  16. of an @ ... GET from the screen form designer.
  17.  
  18. USAGE
  19.  
  20. To add a REQUIRED, insert the following in the "Accept data
  21. when" area of the Edit options menu of the screen form
  22. designer:
  23.  
  24.     'REQ'='REQ' .AND. <rest of logical condition>
  25.  
  26. Note that this must appear exactly as shown above.
  27. Specifically, the letters REQ must be enclosed in SINGLE
  28. QUOTES (') and the <rest of logical condition> must begin in
  29. position 19 in the string.
  30.  
  31. RATIONALE
  32.  
  33. dBASE IV 1.1 makes a subtle but important change to the nature
  34. of the VALID clause used with @ ... GET's.  In version 1.0, no
  35. data was allowed in a field that did not meet the condition(s)
  36. specified by the VALID.  This applied to data that may have
  37. been entered before the VALID was added to the FMT file.
  38. Thus, if a record was edited that contained this data, it
  39. would have to be corrected before the record would be
  40. accepted.
  41.  
  42. In version 1.1, use of a VALID with nothing else will allow
  43. data to violate the VALID condition.  If <Enter> is pressed
  44. with no changes made to the data, the VALID will not be
  45. enforced.  In order to have the VALID enforced in all records,
  46. the keyword REQUIRED must be added between the VALID and the
  47. logical condition that is its object.
  48.  
  49. The problem is that the screen form designer was not modified
  50. to reflect this new usage.  However, the FORM.GEN template can
  51. be fairly easily changed to accomplish this.  That is the sole
  52. purpose of TL_FORM.GEN:  to allow the addition of a REQUIRED
  53. clause to a VALID without programming.
  54.  
  55. For more information, see the file header of TL_FORM.COD.
  56.